/**
 * 
 */
package com.google.code.cisx;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.google.code.cisx.store.StoreModule;
import com.google.inject.AbstractModule;

/**
 * Core Module that is launched at CI application startup to start the
 * configuration.
 * 
 * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
 * @version $Id: CoreModule.java 258 2008-11-29 06:23:51Z rahul.thakur.xdev $
 * @since 1.0
 */
public class CoreModule extends AbstractModule {
	/**
	 * Commons Logging.
	 */
	private static final Log log = LogFactory.getLog(CoreModule.class);

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.google.inject.AbstractModule#configure()
	 */
	@Override
	protected void configure() {
		log.debug("Configuring module: " + CoreModule.class.getName());
		install(new StoreModule());
		bind(CIService.class).to(DefaultCIService.class);	    
	}

}
